package com.ruoyi.supervision.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import java.util.Set;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 监理日志业务对象 supervision_log
 *
 * @author llb
 * @date 2024-10-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SupervisionLogBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 监理机构
     */
    //@NotBlank(message = "监理机构不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jljg;

    /**
     * 编号
     */
    //@NotBlank(message = "编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bh;

    /**
     * 记录人
     */
    //@NotBlank(message = "记录人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String llr;

    /**
     * 审核人
     */
    //@NotBlank(message = "审核人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shry;

    /**
     * 日期
     */
    //@NotNull(message = "日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date rq;

    /**
     * 天气情况
     */
    //@NotBlank(message = "天气情况不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tqqk;

    /**
     * 主要施工情况
     */
    //@NotBlank(message = "主要施工情况不能为空", groups = { AddGroup.class, EditGroup.class })
    private String zysgqk;

    /**
     * 监理主要工作
     */
    //@NotBlank(message = "监理主要工作不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jlzygz;

    /**
     * 问题及处理情况
     */
    //@NotBlank(message = "问题及处理情况不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wtjclqk;

    /**
     * 附件id
     */
    //@NotBlank(message = "附件id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileId;

    private Set<Long> fileNos;


    private Set<Long> fileNoOld;
    /**
     * 项目id
     */
    private String projectId;
    /**
     * 项目名称
     */
    private String projectName;
    //是否是全部项目
    private String allProject;
}
